<extend name="_Layout/maintwo"/>
<block name="style">
    <style>
        .lbw_btn_margin{
            margin-top: 3% !important;
        }
        .lbw_btn_a_margin{
            height: 85px !important;
        }
        .lbw_btn_color_one{
            color: #FFF;
            font-weight: bold;
            background-color: #00B630;
        }
        .lbw_btn_color_two{
            color: #FFF;
            font-weight: bold;
            background-color: #00A0E8;
        }
        .lbw_btn_p_{
            font-size: 15px;
            color: #FFF;
            margin-left: 12px;
        }
        .lbw_header_bz{
            color: #FFF !important;
            font-weight: bold !important;
            background-color: #00B630 !important;
        }
        .lbw_header_bztwo{
            color: #FFF !important;
            font-weight: bold !important;
            background-color: #00A0E8 !important;
        }
        .btn-default:hover, .btn-default:focus, .btn-default.focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default{
            color: #FFF;
            background-color: #5CD834;
            border-color: #5CD834;
        }
        .btn-default-one:hover, .btn-default-one:focus, .btn-default-one.focus, .btn-default-one:active, .btn-default-one.active, .open > .dropdown-toggle.btn-default-one{
            color: #FFF;
            background-color: #45AAD8;
            border-color: #45AAD8;
        }
        .lbw_table_tr{
            background-color: #B5FAFF;
            color: #000;
        }
    </style>
    <link href="__HOME_CSS__/fileinput.css" rel='stylesheet' type='text/css' />
    <link href="__HOME_CSS__/font-awesome.min.css" rel='stylesheet' type='text/css' />
</block>
<block name="main">
    <div class="col-sm-6">
        <div  style="color: #44CDAF;font-weight: bold;font-size: 17px;" class="navbar-left">用戶名:{$user_id},</div>
        <div  style="color: #000;font-weight: bold;" class="navbar-left">會員等級<if condition="$user_viplevel eq 0">V1<elseif condition="$user_viplevel eq 1"/>V2<elseif condition="$user_viplevel eq 2"/>V3<else />V4</if></div>
    </div>
    <div class="col-sm-6">
        <div  style="color: #000;font-weight: bold;" class="navbar-right">当前时间:<?php echo date('Y-m-d G:i:s A',time()); ?></div>
    </div>
    <div class="col-sm-12">
        <div id="reg_new_djs" style="color: #F00;font-weight: bold;" class="navbar-right"></div>
    </div>
    <div class="col-sm-6 lbw_btn_margin">
        <a id="tigongbz" class="btn btn-block btn-default btn-lg lbw_btn_a_margin lbw_btn_color_one" style="padding: 0px 10px !important;border: none !important;" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
		<span class="p-donation navbar-left lbw_btn_margin" style="padding-left: 100px;font-size: 30px;">
		 參與眾扶
            <p class="lbw_btn_p_"style="margin-left: 0px;">我自願幫助他人</p>
		</span>
            <img style="margin-top: 42px;height: 30px;margin-right: 9px;" class="navbar-right" id="tigong"  src="__HOME_IMG__/xyk.png" />
        </a>
    </div>
    <div class="col-sm-6 lbw_btn_margin">
        <a id="huodebz" class="btn btn-block btn-default btn-default-one btn-lg lbw_btn_a_margin lbw_btn_color_two" style="padding: 0px 10px !important;border: none !important;" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
		<span class="g-donation navbar-left lbw_btn_margin" style="padding-left: 100px;font-size: 30px;">
		  接受眾扶
            <p class="lbw_btn_p_" style="margin-left: 0px;">我需要他人幫助</p>
		</span>
            <img style="margin-top: 42px;margin-right: -5px;height: 30px;margin-right: 9px;"  class="navbar-right" id="huode" src="__HOME_IMG__/r.png" />
        </a>
    </div>
    </div>
    <!--折疊信息框-->
    <div style="margin-top: 20px;" id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
        <div class="panel panel-default">
            <div class="panel-heading lbw_header_bz">參與眾扶列表</div>
            <div class="panel-body">
                <form method="post" action="{:U('Home/User/getHelp')}"  class="form-horizontal margin-none">
                    <div class="widget-body">
                        <!--    <div class="form-group">
                                <label class="col-md-3 control-label">
                                    支付方式
                                </label> -->


                        <input type="hidden" value="1" class="ckbox" name="zffs1" checked="">

                        <input type="hidden" value="2" class="ckbox" name="zffs2" checked="">

                        <input type="hidden" value="3" class="ckbox" name="zffs3" checked="">

                        <div class="form-group">
                            <label class="col-md-3 control-label">
                                參與眾扶金額
                            </label>
                            <div class="col-md-9">
                                <input type="text" style="width: 62%;" class="form-control get_amount" placeholder="輸入{$fk_zd_je}-{$fk_zg_je}" name="amount" id="amount" autocomplete="off" required="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">
                                二級密碼
                            </label>
                            <div class="col-md-9">
                                <input type="password" style="width: 62%;" class="form-control get_amount" placeholder="輸入二級密碼" name="lbw_twopwd" autocomplete="off" required="">
                            </div>

                        </div>
                        <div class="form-group">
                            <div class="col-md-3">

                            </div>
                            <div class="col-md-9">
                                <button type="submit" onClick="return confirm('確定提交幫助要嗎?');" class="btn btn-default" data-dismiss="modal">
                                    確定
                                </button>
                            </div>

                        </div>
                        <!-- <div class="form-group" style="padding-left: 20px;">
                             <label class="col-md-3 control-label">
                                 愿意排队的天数
                             </label>
                             <div class="gw_num">
                                 <em class="gw_numema jian">-</em>
                                 <input type="text" class="num" id="lbw_day_dk" name="lbw_day" value="1">
                                 <em class="gw_numema add">+</em>
                             </div>
                         </div>-->
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!--the end信息框-->
    <!--折疊信息框-->
    <div style="margin-top: 20px;" id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
        <div class="panel panel-default">
            <div class="panel-heading lbw_header_bztwo">我要接受眾扶</div>
            <div class="panel-body">
                <form method="post" action="{:U('Home/User/LbwProvide')}" name="buy_share_form" class="form-horizontal margin-none" id="dedao_help">
                    <div class="widget-body">
                        <div class="form-group">
                            <label class="col-md-3 control-label">
                                接受眾扶錢包
                            </label>
                            <div class="col-md-9">
                                <div class="col-sm-5">
                                    <select name="qianbao" class="form-control">
                                        <option value="1"> 靜態錢包(可用余额:{$user_jtmoney})</option>
                                        <option value="2"> 動態錢包(可用余额:{$user_dt_ye})</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">
                                接受眾扶金額
                            </label>
                            <div class="col-md-9">
                                <input type="text" style="width: 62%;" class="form-control get_amount" placeholder="輸入{$sk_zd_je}-{$sk_zg_je}" name="amount" id="amount" autocomplete="off" required="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">
                                二級密碼
                            </label>
                            <div class="col-md-9">
                                <input type="password" style="width: 62%;"  class="form-control get_amount" placeholder="輸入二級密碼" name="lbw_twopwd" autocomplete="off" required="">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-3 control-label">

                            </div>
                            <div class="col-md-9">
                                <button type="submit" onClick="return confirm('確定提交嗎?');" class="btn btn-default" data-dismiss="modal">
                                    確定
                                </button>
                            </div>
                        </div>
                    </div>
                    <footer class="data-footer innerAll half text-right clearfix">

                        <input type="hidden" value="1" class="ckbox" name="zffs1" checked="">

                        <input type="hidden" value="2" class="ckbox" name="zffs2" checked="">

                        <input type="hidden" value="3" class="ckbox" name="zffs3" checked="">
                    </footer>
                </form>
            </div>
        </div>
    </div>
    <!--the end信息框-->
    <div class="row lbw_plist_mx" style="margin-top: 20px;">
        <div class="col-md-9">

            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading lbw_header_bz" style="padding: 5px 10px;">參與眾扶狀態</div>
                <div class="table-responsive" style="padding: 15px;font-weight: bold;">
                        <table class="table table-bordered" style="border: 1px solid #DDD;">
                            <thead>
                            <volist name="lbwsf" id="sf">
                            <tr class="lbw_table_tr">
                                <th>NO.{$i}</th>
                                <th>單號</th>
                                <th>交易進度</th>
                                <th>交易時間</th>
                                <th>打款計時</th>
                                <th>付款金額</th>
                                <th>收款會員</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                                <if condition="$sf.sk_lbw_vipid neq $user_username">
                                    <if condition="$sf.sf_jy_status neq 2">
                                    <tbody>
                                    <tr>
                                        <th scope="row"><img style="width: 48px;height: 40px;" src="__HOME_IMG__/b11.png" /></th>
                                        <td>{$sf.dk_odr_ordernumber}</td>
                                        <td><if condition="$sf.sf_jy_status eq 0"> 等待打款<elseif condition="$sf.sf_jy_status eq 1"/>我已打款<elseif condition="$sf.sf_jy_status eq 2"/>交易完成<else />交易糾紛</if></td>
                                        <td>{$sf.dk_creattime}<br />
                                        <td><span id="jiaoyitime{$i}" style="color: #ff2222;">
                                        </span>
                                        <script language="JavaScript">

                                            window.setInterval(function(){ // 每秒从服务器取一次数据
                                                var abc="{$sf.dk_lbw_order_pipei}";
                                                abc = '&danhao='+abc;
                                                $.ajax({
                                                    type: "post",
                                                    url : "{:U('Home/User/dkCountDown')}",
                                                    data:abc,
                                                    success: function(response) {
                                                        $('#jiaoyitime'+{$i}).html(response);
                                                    }
                                                });
                                            },1000);
                                        </script>
                                    <span id="shoukuantimeb{$i}" style="color: #ff2222;">
                                        </span>
                                        <script language="JavaScript">

                                            window.setInterval(function(){ // 每秒从服务器取一次数据
                                                var abc="{$sf.dk_lbw_order_pipei}";
                                                abc = '&danhao='+abc;
                                                $.ajax({
                                                    type: "post",
                                                    url : "{:U('Home/User/skCountDown')}",
                                                    data:abc,
                                                    success: function(response) {
                                                        $('#shoukuantimeb'+{$i}).html(response);
                                                    }
                                                });
                                            },1000);
                                        </script>
                                    </td>
                                        <td>{$sf.dk_money_total}</td>
                                        <td>{$sf.sk_name}</td>
                                        <td>
                                            <if condition="$sf.sf_jy_status eq 0">
                                                <a href="#" data-toggle="modal" data-target="#exampleModal{$i}" data-whatever="@mdo" class="btn btn-success" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;">我要打款</a><br />
                                                <!--   <if condition="$sf.sf_jy_status eq 3">
                                                     <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensu{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                     <elseif condition="$sf.sf_jy_status eq 4"/>
                                                     <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_shensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                     <elseif condition="$sf.sf_jy_status eq 0" />
                                                     <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                     <else />
                                                     <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br /> -->
                                               <!--  </if> -->
                                                <elseif condition="$sf.sf_jy_status eq 1"/>
                                                <a href="#" data-toggle="modal" data-whatever="@mdo" class="btn btn-success" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;">等待確認</a><br />
                                               <!-- <if condition="$sf.sf_jy_status eq 3">
                                                    <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensu{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                    <elseif condition="$sf.sf_jy_status eq 4"/>
                                                    <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_shensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                    <elseif condition="$sf.sf_jy_status eq 0" />
                                                    <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                    <else />
                                                    <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                </if> -->
                                                <elseif condition="$sf.sf_jy_status eq 2"/>
                                                <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-success">交易完成</a><br />
                                                <!--<a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-danger">隱藏訂單</a><br /> -->
                                                <else /><a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-success">交易糾紛</a>
                                                <br />
                                               <!-- <if condition="$sf.sf_jy_status eq 3">
                                                    <!--<a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensu{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                    <elseif condition="$sf.sf_jy_status eq 4"/>
                                                    <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_shensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                    <elseif condition="$sf.sf_jy_status eq 0" />
                                                    <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                    <else /> -->
                                                 <!-- <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br /> -->
                                                <!-- </if> -->
                                            </if>
                                           <!-- <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target=".lbw_mingxi{$i}" class="btn btn-info">查看明細</a> -->
                                        </td>
                                    </tr>
                                    </tbody>
                                    <else />
                                    </if>
                                </if>
                                <div class="modal fade lbw_mingxi{$i}" tabindex="-1"  role="dialog" aria-labelledby="myLargeModalLabel">
                                    <div class="modal-dialog">
                                        <div class="modal-content" style="border-radius:10px;">
                                            <div class="modal-header" style="background: #44CDAF;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                                <h3 class="modal-title">提供幫助明細</h3>
                                            </div>
                                            <div class="modal-body">
                                                <div class="container-fluid">
                                                    <div class="panel panel-default">
                                                        <div class="panel-header" style="background: #F19307;color: #FFF;padding: 15px;font-weight: bold;">
                                                            公共部分</div>
                                                        <ul class="list-group">
                                                            <li class="list-group-item"><b>雙方交易號: </b>{$sf.dk_lbw_order_pipei}</li>
                                                            <li class="list-group-item"><b>雙方交易時間: {$sf.dk_creattime}</b></li>
                                                            <li class="list-group-item"><b>交易金額: </b>{$sf.dk_money_total}</li>
                                                            <li class="list-group-item"><b>交易方式: </b><if condition="$sf.dk_peiduifs eq 1"> 支付寶<elseif condition="$sf.dk_peiduifs eq 2"/>銀行卡<elseif condition="$sf.dk_peiduifs eq 3" />比特幣 <else />待更新</if></li>
                                                            <li class="list-group-item"><b>打款截圖: </b><if condition="$sf.dk_dakuan_status eq 0">暫無 <else /><a class="btn btn-danger" href="{$sf.dk_dakuan_img}">點擊查看打款截圖</a></if></li>
                                                            <li class="list-group-item"><b>雙方交易狀態: </b><if condition="$sf.sf_jy_status eq 0"> 等待對方打款<elseif condition="$sf.sf_jy_status eq 1"/>對方已打款<elseif condition="$sf.sf_jy_status eq 2"/>交易完成<else />交易糾紛中</if></li>
                                                        </ul>
                                                    </div>
                                                    <div class="panel panel-default">
                                                        <div class="panel-header" style="background: #44CDAF;color: #FFF;padding: 15px;font-weight: bold;">
                                                            您的個人信息</div>
                                                        <ul class="list-group">
                                                            <li class="list-group-item"><b>您的姓名: </b>{$sf.fk_name}</li>
                                                            <li class="list-group-item"><b>打款金額: </b>{$sf.dk_money_total}</li>
                                                            <li class="list-group-item"><b>銀行卡號: </b>{$sf.dk_bank_name}</li>
                                                            <li class="list-group-item"><b>銀行名稱: </b>{$sf.dk_bank_number}</li>
                                                            <li class="list-group-item"><b>支付寶賬號: </b>{$sf.dk_alipay}</li>
                                                            <li class="list-group-item"><b>手機號: </b>{$sf.dk_my_mobile}</li>
                                                            <li class="list-group-item"><b>上級手機號: </b>{$sf.dk_sj_mobile}</li>
                                                        </ul>
                                                    </div>
                                                    <div class="panel panel-default">
                                                        <div class="panel-header" style="background: #2646A1;color: #FFF;padding: 15px;font-weight: bold;">
                                                            獲得幫助的人信息</div>
                                                        <ul class="list-group">
                                                            <li class="list-group-item"><b>收款人的姓名: </b>{$sf.sk_name}</li>
                                                            <li class="list-group-item"><b>收款金額: </b>{$sf.dk_money_total}</li>
                                                            <li class="list-group-item"><b>銀行卡號: </b>{$sf.sk_bank_number}</li>
                                                            <li class="list-group-item"><b>銀行名稱: </b>{$sf.sk_bank_name}</li>
                                                            <li class="list-group-item"><b>支付寶賬號: </b>{$sf.sk_alipay}</li>
                                                            <li class="list-group-item"><b>手機號: </b>{$sf.sk_my_mobile}</li>
                                                            <li class="list-group-item"><b>上級手機號: </b>{$sf.sk_sj_mobile}</li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </volist>
                        </table>
                        <volist name="lbwsf" id="sf">
                            <div class="modal fade" id="exampleModal{$i}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                                <div class="modal-dialog" role="document">
                                    <div class="modal-content" style="border-radius:10px;">
                                        <div class="modal-header" style="background: #44CDAF;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                            <h3 class="modal-title">我要打款</h3>
                                        </div>
                                        <div class="modal-body">
                                            <form action="{:U('Home/User/submitGetHelp')}" enctype="multipart/form-data" method="post">
                                                <div class="form-group">
                                                    <label for="recipient-name" class="control-label">交易信息:</label>
                                                    <ul class="list-group">
                                                        <li class="list-group-item"><b>對方姓名: </b>{$sf.sk_name}</li>
                                                        <li class="list-group-item"><b>交易金額: </b>{$sf.dk_money_total}</li>
                                                        <li class="list-group-item"><b>對方銀行卡號: </b>{$sf.sk_bank_number}</li>
                                                        <li class="list-group-item"><b>對方銀行名稱: </b>{$sf.sk_bank_name}</li>
                                                        <li class="list-group-item"><b>對方支付寶賬號: </b>{$sf.sk_alipay}</li>
                                                        <li class="list-group-item"><b>對方手機號: </b>{$sf.sk_my_mobile}</li>
                                                        <li class="list-group-item"><b>收款推薦人姓名: </b>{$sf.sk_sj_fristname}</li>
                                                        <li class="list-group-item"><b>收款推薦人賬戶: </b>{$sf.sk_tjr_username}</li>
                                                        <li class="list-group-item"><b>收款推薦人手機號: </b>{$sf.sk_sj_mobile}</li>
                                                    </ul>
                                                </div>
                                                <div  style="display: none;" class="form-group">
                                                    <label for="recipient-name" class="control-label">選擇支付方式(只顯示對方都支持的):</label>
                                                    <select style="display: none;" name="mypayff" class="form-control">
                                                            <option value="1">支付寶</option>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                    <label for="recipient-name" class="control-label">上傳打款截圖:</label>
                                                    <input name="fk_picture" id="file-0" class="file" type="file" multiple data-min-file-count="1">
                                                </div>
                                                <div class="form-group">
                                                    <label for="recipient-name" class="control-label">備註信息:</label>
                                                    <textarea name="fk_beizhu" class="form-control" placeholder="備註信息"></textarea>
                                                </div>
                                                <input name="sf_sc_dh" type="hidden" value="{$sf.dk_lbw_order_pipei}" />
                                                <input type="hidden" value="{$i}" />
                                        </div>
                                        <div class="modal-footer">
                                            <button type="submit" class="btn btn-danger">提交打款</button>
                                        </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </volist>
                        <volist name="lbwsf" id="sf">
                            <div class="modal fade" id="shensu{$i}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                                <div class="modal-dialog" role="document">
                                    <div class="modal-content" style="border-radius:10px;">
                                        <div class="modal-header" style="background: #d9534f;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                            <h3 class="modal-title">申訴資料提交</h3>
                                        </div>
                                        <div class="modal-body">
                                            <form action="{:U('Home/User/fkPingZheng')}" enctype="multipart/form-data" method="post">
                                                <div class="form-group">
                                                    <label for="recipient-name" class="control-label">上傳憑證圖片:</label>
                                                    <input name="shensu_picture" id="file-1" class="file" type="file" multiple data-min-file-count="1">
                                                </div>
                                                <div class="form-group">
                                                    <label for="recipient-name" class="control-label">申訴原因:</label>
                                                    <textarea required="required" name="shensu_beizhu" class="form-control" placeholder="申訴原因"></textarea>
                                                </div>
                                                <input name="dddd" type="hidden" value="{$sf.dk_lbw_order_pipei}" />
                                        </div>
                                        <div class="modal-footer">
                                            <button type="submit" onClick="return confirm('確認提交申訴資料嗎?');" class="btn btn-danger">提交申訴資料</button>
                                        </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </volist>
                </div>
            </div>

        <!--申訴進度查詢 -->
        <volist name="lbwsf" id="sf">
            <div class="modal fade bs-example-modal-lg lbw_shensumingxi{$i}" tabindex="-1"  role="dialog" aria-labelledby="myLargeModalLabel">
                <div class="modal-dialog modal-lg">
                    <div class="modal-content" style="border-radius:10px;">
                        <div class="modal-header" style="background: #44CDAF;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h3 class="modal-title">申訴進度明細</h3>
                        </div>
                        <div class="modal-body">
                            <div class="container-fluid">
                                <div class="panel panel-default">
                                    <div class="panel-header" style="background: #44CDAF;color: #FFF;padding: 15px;font-weight: bold;">
                                        您的投訴信息</div>
                                    <ul class="list-group">
                                        <li class="list-group-item"><b>投訴憑證截圖: </b><a class="btn btn-danger" href="{$sf.dk_pingzheng_jf}">點擊查看我的投訴憑證</a></li>
                                        <li class="list-group-item"><b>投訴原因: </b>{$sf.fk_ts_miaoshu}</li>
                                    </ul>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-header" style="background: #2646A1;color: #FFF;padding: 15px;font-weight: bold;">
                                        對方投訴的信息</div>
                                    <ul class="list-group">
                                        <li class="list-group-item"><b>投訴憑證截圖: </b><a class="btn btn-danger" href="{$sf.sk_pingzheng_jf}">點擊查看他的投訴憑證</a></li>
                                        <li class="list-group-item"><b>投訴原因: </b>{$sf.sk_ts_miaoshu}</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </volist>
        <!--end-->


    <!--the end-->



            <div class="panel panel-default">
                <!-- Default panel contents -->
                <div class="panel-heading lbw_header_bz" style="background-color:#00A0E8!important;padding: 5px 10px;">接受眾扶狀態</div>
                <div class="table-responsive" style="padding: 15px;font-weight: bold;">
                    <table class="table table-bordered" style="border: 1px solid #DDD;">
                        <thead>
                        <tr class="lbw_table_tr">
                            <th>NO.{$i}</th>
                            <th>單號</th>
                            <th>交易進度</th>
                            <th>交易時間</th>
                            <th>收款計時</th>
                            <th>付款金額</th>
                            <th>打款會員</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <volist name="lbwgd" id="sf">
                            <if condition="$sf.dk_lbw_vipid neq $user_username">
                                <if condition="$sf.sf_jy_status neq 2">
                                <tbody>
                                <tr>
                                    <th scope="row"><img style="width: 48px;height: 40px;" src="__HOME_IMG__/b11.png" /></th>
                                    <td>{$sf.dk_lbw_order_pipei}</td>
                                    <td><if condition="$sf.sf_jy_status eq 0"> 對方打款<elseif condition="$sf.sf_jy_status eq 1"/>已打款<elseif condition="$sf.sf_jy_status eq 2"/>交易完成<else />交易糾紛中</if></td>
                                    <td>{$sf.dk_creattime}                                    </td>
                                    <td><span id="shoukuantime{$i}" style="color: #ff2222;">
                                        </span>
                                    <script language="JavaScript">

                                        window.setInterval(function(){ // 每秒从服务器取一次数据
                                            var abc="{$sf.dk_lbw_order_pipei}";
                                            abc = '&danhao='+abc;
                                            $.ajax({
                                                type: "post",
                                                url : "{:U('Home/User/skCountDown')}",
                                                data:abc,
                                                success: function(response) {
                                                    $('#shoukuantime'+{$i}).html(response);
                                                }
                                            });
                                        },1000);
                                    </script>
                                        <span id="jiaoyitimeb{$i}" style="color: #ff2222;">
                                        </span>
                                        <script language="JavaScript">

                                            window.setInterval(function(){ // 每秒从服务器取一次数据
                                                var abc="{$sf.dk_lbw_order_pipei}";
                                                abc = '&danhao='+abc;
                                                $.ajax({
                                                    type: "post",
                                                    url : "{:U('Home/User/dkCountDown')}",
                                                    data:abc,
                                                    success: function(response) {
                                                        $('#jiaoyitimeb'+{$i}).html(response);
                                                    }
                                                });
                                            },1000);
                                        </script>
                                    </td>
                                    <td>{$sf.dk_money_total}</td>
                                    <td>{$sf.fk_name}</td>
                                    <td>
                                        <if condition="$sf.sf_jy_status eq 0">
                                            <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target=".lbw_ddbzmingxi{$i}" class="btn btn-info">查看明細</a>
                                          <!--  <if condition="$sf.sf_jy_status eq 3">
                                                <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensuddbz{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 4"/>
                                                <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_ddbzshensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 0" />
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                <else />
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                            </if> -->
                                            <elseif condition="$sf.sf_jy_status eq 1"/>
                                            <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="{:U('Home/User/submitGdList')}&dd={$sf.dk_lbw_order_pipei}" onClick="return confirm('確定收款?');" class="btn btn-success">確認收款</a><br />
                                            <if condition="$sf.sf_jy_status eq 3">
                                                <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensuddbz{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 4"/>
                                                <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_ddbzshensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 0"/>
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                <else />
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                            </if>
                                            <elseif condition="$sf.sf_jy_status eq 2"/>
                                            <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-success">交易完成</a>
                                            <br />
                                           <!-- <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-danger">隱藏訂單</a><br /> -->
                                            <else />
                                            <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" class="btn btn-success">交易糾紛中</a>
                                            <br />
                                            <if condition="$sf.sf_jy_status eq 3">
                                                <a href="#" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" data-toggle="modal" data-target="#shensuddbz{$i}" class="btn btn-danger">上傳憑證</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 4"/>
                                                <a style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" href="#" data-toggle="modal" data-target=".lbw_ddbzshensumingxi{$i}" class="btn btn-danger">查看進度</a><br />
                                                <elseif condition="$sf.sf_jy_status eq 0"/>
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                                <else />
                                                <a href="{:U('Home/User/shensu')}&dd={$sf.dk_lbw_order_pipei}" style="margin-bottom: 3px;margin-left: 8px;text-decoration: none;padding: 0px 5px 0px 5px;" onClick="return confirm('請您謹慎考慮確定要投訴嗎?');" class="btn btn-danger">我要投訴</a><br />
                                            </if>
                                        </if>
                                       <!-- <a style="margin-bottom: 3px;" href="#" data-toggle="modal" data-target=".lbw_ddbzmingxi{$i}" class="btn btn-info">查看明細</a> -->
                                    </td>
                                </tr>
                                </tbody>
                                <else />
                                    </if>
                            </if>
                            <div class="modal fade lbw_ddbzmingxi{$i}" tabindex="-1"  role="dialog" aria-labelledby="myLargeModalLabel">
                                <div class="modal-dialog">
                                    <div class="modal-content" style="border-radius:10px;">
                                        <div class="modal-header" style="background: #00A0E8;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                            <h3 class="modal-title">接受眾扶明細</h3>
                                        </div>
                                        <div class="modal-body">
                                            <div class="container-fluid">
                                               <!-- <div class="panel panel-default">
                                                    <div class="panel-header" style="background: #F19307;color: #FFF;padding: 15px;font-weight: bold;">
                                                        公共部分</div>
                                                    <ul class="list-group">
                                                        <li class="list-group-item"><b>雙方交易號: </b>{$sf.dk_lbw_order_pipei}</li>
                                                        <li class="list-group-item"><b>雙方交易時間: {$sf.dk_creattime}</b></li>
                                                        <li class="list-group-item"><b>交易金額: </b>{$sf.dk_money_total}</li>
                                                        <li class="list-group-item"><b>交易方式: </b><if condition="$sf.dk_peiduifs eq 1"> 支付寶<elseif condition="$sf.dk_peiduifs eq 2"/>銀行卡<elseif condition="$sf.dk_peiduifs eq 3" />比特幣 <else />待更新</if></li>
                                                        <li class="list-group-item"><b>打款截圖: </b><if condition="$sf.dk_dakuan_status eq 0">暫無 <else /><a class="btn btn-danger" href="{$sf.dk_dakuan_img}">點擊查看打款截圖</a></if></li>
                                                        <li class="list-group-item"><b>雙方交易狀態: </b><if condition="$sf.sf_jy_status eq 0"> 等待對方打款<elseif condition="$sf.sf_jy_status eq 1"/>對方已打款<elseif condition="$sf.sf_jy_status eq 2"/>交易完成<else />交易糾紛中</if></li>
                                                    </ul>
                                                </div> -->
                                                <div class="panel panel-default">


                                                        <label for="recipient-name" class="control-label">交易信息:</label>
                                                    <ul class="list-group">
                                                        <li class="list-group-item"><b>打款賬戶名: </b>{$sf.dk_username}</li>
                                                        <li class="list-group-item"><b>打款人姓名: </b>{$sf.fk_name}</li>
                                                        <li class="list-group-item"><b>打款金額: </b>{$sf.dk_money_total}</li>
                                                        <li class="list-group-item"><b>銀行卡號: </b>{$sf.dk_bank_name}</li>
                                                        <li class="list-group-item"><b>銀行名稱: </b>{$sf.dk_bank_number}</li>
                                                        <li class="list-group-item"><b>支付寶賬號: </b>{$sf.dk_alipay}</li>
                                                        <li class="list-group-item"><b>手機號: </b>{$sf.dk_my_mobile}</li>
                                                        <li class="list-group-item"><b>打款推薦人姓名: </b>{$sf.dk_sj_fristname}</li>
                                                        <li class="list-group-item"><b>打款推薦人賬戶: </b>{$sf.fk_tjr_username}</li>
                                                        <li class="list-group-item"><b>打款推薦人手機號: </b>{$sf.dk_sj_mobile}</li>
                                                    </ul>

                                                </div>
                                            <!--    <div class="panel panel-default">
                                                    <div class="panel-header" style="background: #2646A1;color: #FFF;padding: 15px;font-weight: bold;">
                                                        您的個人信息</div>
                                                    <ul class="list-group">
                                                        <li class="list-group-item"><b>我的姓名: </b>{$sf.sk_name}</li>
                                                        <li class="list-group-item"><b>收款金額: </b>{$sf.dk_money_total}</li>
                                                        <li class="list-group-item"><b>銀行卡號: </b>{$sf.sk_bank_number}</li>
                                                        <li class="list-group-item"><b>銀行名稱: </b>{$sf.sk_bank_name}</li>
                                                        <li class="list-group-item"><b>支付寶賬號: </b>{$sf.sk_alipay}</li>
                                                        <li class="list-group-item"><b>手機號: </b>{$sf.sk_my_mobile}</li>
                                                        <li class="list-group-item"><b>上級手機號: </b>{$sf.sk_sj_mobile}</li>
                                                    </ul>
                                                </div> -->
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </volist>
                    </table>
                    <volist name="lbwgd" id="sf">
                        <div class="modal fade" id="shensuddbz{$i}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content" style="border-radius:10px;">
                                    <div class="modal-header" style="background: #d9534f;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <h3 class="modal-title">申訴資料提交</h3>
                                    </div>
                                    <div class="modal-body">
                                        <form action="{:U('Home/User/skPingZheng')}" enctype="multipart/form-data" method="post">
                                            <div class="form-group">
                                                <label for="recipient-name" class="control-label">上傳憑證圖片:</label>
                                                <input name="shensu_picture" id="file-3" class="file" type="file" multiple data-min-file-count="1">
                                            </div>
                                            <div class="form-group">
                                                <label for="recipient-name" class="control-label">申訴原因:</label>
                                                <textarea required="required" name="shensu_beizhu" class="form-control" placeholder="申訴原因"></textarea>
                                            </div>
                                            <input name="dddd" type="hidden" value="{$sf.dk_lbw_order_pipei}" />
                                    </div>
                                    <div class="modal-footer">
                                        <button type="submit" onClick="return confirm('確認提交申訴資料嗎?');" class="btn btn-danger">提交申訴資料</button>
                                    </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </volist>
                </div>
            </div>

        <!--申訴進度查詢 -->
        <volist name="lbwgd" id="sf">
            <div class="modal fade bs-example-modal-lg lbw_ddbzshensumingxi{$i}" tabindex="-1"  role="dialog" aria-labelledby="myLargeModalLabel">
                <div class="modal-dialog modal-lg">
                    <div class="modal-content" style="border-radius:10px;">
                        <div class="modal-header" style="background: #44CDAF;color: #FFF;border-bottom: 1px solid #FFF;border-top-left-radius: 10px;border-top-right-radius: 10px;">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <h3 class="modal-title">申訴進度明細</h3>
                        </div>
                        <div class="modal-body">
                            <div class="container-fluid">
                                <div class="panel panel-default">
                                    <div class="panel-header" style="background: #44CDAF;color: #FFF;padding: 15px;font-weight: bold;">
                                        您的投訴信息</div>
                                    <ul class="list-group">
                                        <li class="list-group-item"><b>投訴憑證截圖: </b><a class="btn btn-danger" href="{$sf.sk_pingzheng_jf}">點擊查看他的投訴憑證</a></li>
                                        <li class="list-group-item"><b>投訴原因: </b>{$sf.sk_ts_miaoshu}</li>
                                    </ul>
                                </div>
                                <div class="panel panel-default">
                                    <div class="panel-header" style="background: #2646A1;color: #FFF;padding: 15px;font-weight: bold;">
                                        對方投訴的信息</div>
                                    <ul class="list-group">
                                        <li class="list-group-item"><b>投訴憑證截圖: </b><a class="btn btn-danger" href="{$sf.dk_pingzheng_jf}">點擊查看我的投訴憑證</a></li>
                                        <li class="list-group-item"><b>投訴原因: </b>{$sf.fk_ts_miaoshu}</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </volist>
        </div>
        <!--側邊狀態 -->
        <div class="col-md-3">
            <volist name="lbwlist" id="lbo">
                    <if condition="$lbo.jiaoyi_zt neq 2">
                <ul class="list-group" style="background-color: #00B630;padding: 12px 10px 10px 35px;color: #FFF;font-size: 15px;border-radius: 6px;">
                    <li style="list-style-type:none;font-weight: bold !important;" ><i style="font-size: 18px;margin-right: 5px;font-weight: bold;" class="glyphicon glyphicon-hand-left"></i>參與眾扶</li>
                    <li style="list-style-type:none;">訂單號: {$lbo.lbw_order_pipei}</li>
                    <li style="list-style-type:none;" >參與眾扶金額: {$lbo.total_forever}RMB</li>
                    <li style="list-style-type:none;" >已匹配金額: <if condition="$lbo.yipipei_money eq 0">0 RMB<else />{$lbo.yipipei_money} RMB</if></li>
                    <li style="list-style-type:none;">日期: {$lbo.creattime}</li>
                    <li style="list-style-type:none;" >狀態: <if condition="$lbo.peidui_cishu eq 0"> 排隊中 <else /> 交易中</if></li>
                    <li style="list-style-type:none;">收益: <?php echo $lbo['money_total'] * 0.01; ?>元,第30天<a href="{:U('Home/User/Removepdlist')}&id={$lbo.id}" class="btn btn-default" style="margin-left:8px;text-decoration: none;padding: 0px 5px 0px 5px;">取消排队</a></li>
                </ul>
                    <else />
                    </if>
            </volist>
            <volist name="userlist" id="lbw">
                <if condition="$lbw.jiaoyi_zt neq 2">
                    <ul class="list-group" style="background-color: #00A0E8;padding: 22px 22px 22px 35px;color: #FFF;font-size: 15px;border-radius: 6px;">
                        <li style="list-style-type:none;font-weight: bold !important;"><i style="font-size: 18px;margin-right: 5px;font-weight: bold;" class="glyphicon glyphicon-hand-right"></i>接受眾扶</li>
                        <li style="list-style-type:none;">訂單號: {$lbw.lbw_order_sk_id}</li>
                        <li style="list-style-type:none;">獲得幫助金額: {$lbw.total_sk}RMB</li>
                        <li style="list-style-type:none;" >已匹配金額: <if condition="$lbw.yipipei_money eq 0">0 RMB<else />{$lbw.yipipei_money} RMB</if></li>
                        <li style="list-style-type:none;">日期: {$lbw.creattime}</li>
                        <li style="list-style-type:none;">狀態: <if condition="$lbw.shoukuan_cishu eq 0"> 等待中<else /> 交易中</if></li>
                    </ul>
                    <else />
                </if>
            </volist>
        </div>
        <!--the end-->
    <!--側邊狀態 -->
    <!--the end-->
    </div>
    <script type="text/javascript" src="__HOME_JS__/raphaeljs.js"></script>
    <script type="text/javascript" src="__HOME_JS__/justgaga.js"></script>
    <script type="text/javascript" src="__HOME_JS__/fileinput.js"></script>
    <script type="text/javascript" src="__HOME_JS__/fileinput_locale_zh.js"></script>
    <script>
        $("#file-0").fileinput({
            'allowedFileExtensions' : ['jpg', 'png','gif'],
        });
        $("#file-1").fileinput({
            'allowedFileExtensions' : ['jpg', 'png','gif'],
        });
        $("#file-3").fileinput({
            'allowedFileExtensions' : ['jpg', 'png','gif'],
        });
    </script>
</block>

